AUTOMAKE_OPTIONS = foreign

bin_PROGRAMS = rpc_server
COMMON_SERVER_SOURCES = saladrpc.pb.cc \
						saladtest_service_impl.cpp \
						phxrpc_saladtest_service.cpp \
						phxrpc_saladtest_dispatcher.cpp \
						saladtest_server_config.cpp \
						saladtest_main.cpp 

rpc_server_SOURCES = $(COMMON_SERVER_SOURCES)
rpc_server_LDFLAGS = -std=c++11 -Wall -D_REENTRANT -D_GNU_SOURCE -D_XOPEN_SOURCE -fPIC -m64 $(INTLLIBS)
rpc_server_CPPFLAGS = -I../include

INTLLIBS = -lpthread -lstdc++ -lm

rpc_server_LDADD = ../lib/libphxrpc.a		\
				   ../lib/libprotobuf.a			\
				   ../lib/libprotobuf-lite.a	\
				   ../lib/libprotoc.a			\
				   ../lib/liblpsys.so		






